package com.lnsf.dao;

import java.util.List;

import javax.persistence.QueryHint;

/**
 * 2017.07.26
 * @author Daen
 *
 */

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.QueryHints;
import org.springframework.transaction.annotation.Transactional;

import com.lnsf.entity.Orders;

public interface OrdersDao extends JpaRepository<Orders, Integer>{
	@Transactional	  
public Orders findOne(Integer arg0);
@Transactional
public <S extends Orders> S save(S arg0);

@Transactional
@Modifying
@Query(value="update orders set describle=?2 where id = ?1",nativeQuery=true)
public int updateOrders(int id,String describle);


}
